package com.yzf.zyfverifycode;


import com.yzf.zyfverifycode.utils.Utils;

public class Sms {
    public String getReceiveTime() {
        return receiveTime;
    }

    public String getNumber() {
        return number;
    }

    public void setReceiveTime(String receiveTime) {
        this.receiveTime = receiveTime;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public void setVerifycode(String verifycode) {
        this.verifycode = verifycode;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public void setOriginatingAddress(String originatingAddress) {
        this.originatingAddress = originatingAddress;
    }

    public String getVerifycode() {
        return verifycode;
    }

    public String getBody() {
        return body;
    }

    public String getOriginatingAddress() {
        return originatingAddress;
    }
    // 时间
    private String receiveTime = "";
    private String number = "";

    // 验证码
    private String verifycode = "";
    private String body = "";
    private String originatingAddress = "";
    // 接收号码
    private String isSuccess = "";
    private int onSimId = -1;
    // 是否显示 1为不显示；0为显示
    private String isSave;

    public String getReceverPhoneNo() {
        return receverPhoneNo;
    }

    public void setReceverPhoneNo(String receverPhoneNo) {
        this.receverPhoneNo = receverPhoneNo;
    }

    public String getIsSave() {
        return isSave;
    }

    public void setIsSave(String isSave) {
        this.isSave = isSave;
    }

    private String receverPhoneNo = "";

    public int getOnSimId() {
        return onSimId;
    }

    public void setOnSimId(int onSimId) {
        this.onSimId = onSimId;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return errorCode;
    }

    private String errorCode = "";

    public String getServiceCenterAddress() {
        return serviceCenterAddress;
    }

    public void setServiceCenterAddress(String serviceCenterAddress) {
        this.serviceCenterAddress = serviceCenterAddress;
    }

    private String serviceCenterAddress = "";
    public void setIsSuccess(String str){
        this.isSuccess = str;
    }

    public String getIsSuccess(){
        return this.isSuccess;
    }

    public String getBankName() {
        return Utils.getBankNameByNum(getOriginatingAddress());
    }

    @Override
    public String toString() {
        return "receiveTime->" + getReceiveTime() + " number->" + getReceverPhoneNo() +
                " verifycode->" + getVerifycode() + " body->" + getBody() +
                " originatingAddress->" + getOriginatingAddress() + " isSuccess->" + getIsSuccess();
    }
}
